package pers.fulsun.demo.springcloud.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fulsun
 * @since 2021-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_total" )
public class UserTotal implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("total")
    private Long total;

    @TableField("create_date")
    private LocalDateTime createDate;

    @TableField("create_by")
    private String createBy;

    /**
     * 逻辑删除标志
     */
    @TableLogic
    @ApiModelProperty(value = "逻辑删除标志", dataType = "Byte", name = "isDelete", required = false)
    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    private byte isDelete;


    /**
     * 最后更新人
     */
    @ApiModelProperty(value = "最后更新人", dataType = "String ", name = "updateBy", required = true)
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE,exist = false)

    private String updateBy;

    /**
     * 最后更新时间
     */
    @ApiModelProperty(value = "最后更新时间", dataType = "LocalDateTime ", name = "updateTime", required = true)
    @TableField(value = "update_date", fill = FieldFill.INSERT_UPDATE,exist = false)
    private LocalDateTime updateDate;

}
